package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.ListOfGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2024-09-05
 */
@Mapper
public interface ListOfGoodsMapper extends BaseMapper<ListOfGoods> {
    @Select("select * from list_of_goods")
    IPage<ListOfGoods> listListGoodsId(Page<ListOfGoods> list);

    @Select("select * from list_of_goods where list_goods_id = #{id}")
    ListOfGoods listListId(@Param("id") Integer id);
}
